package DesignPattern.exer.absfactory.factory;

import DesignPattern.exer.absfactory.bean.JavaOfflineCourse;
import DesignPattern.exer.absfactory.bean.JavaOnlineCourse;
import DesignPattern.exer.absfactory.bean.OfflineCourse;
import DesignPattern.exer.absfactory.bean.OnlineCourse;

public class JavaCourseFactory implements CourseFactory{
    @Override
    public OnlineCourse produceOnlineCourse() {
        return new JavaOnlineCourse();
    }

    @Override
    public OfflineCourse produceOfflineCourse() {
        return new JavaOfflineCourse();
    }
}
